<form class="layui-form" action="">
	<div class="layui-form-item layui-col-xs6 layui-col-sm6 layui-col-md4">
	    <label class="layui-form-label">时间</label>
	    <div class="layui-input-block">
	      <input type="text" class="layui-input" id="logdate" placeholder="yyyy-MM-dd HH:mm:ss">
	    </div>
    </div>
    <div class="layui-form-item">
	    <label class="layui-form-label">内容</label>
	    <div class="layui-input-block">
	      <textarea id="logcontent" style="display: none;"></textarea>
	    </div>
    </div>
</form>

<script>
	$(document).ready(function() {
		layui.use([ 'form', 'layer' ,'laydate','layedit'], function() {
			var form = layui.form;
			var layer = layui.layer;
			var laydate = layui.laydate;
			var addWorkLog = new AddWorkLog();
			var layedit = layui.layedit;
			addWorkLog.init(form, layer, laydate,layedit);
		});
	});
</script>